<html>

<head>
    <title>华智创云排课平台</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/static/findpassword/assets/css/main1.css">
    <link rel="stylesheet" type="text/css" href="/static/findpassword/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/findpassword/assets/css/text.css" />

    <style type="text/css">
        .tipText {
            color: #10A08C;
            font-weight: bold;
        }

        .success {
            background: url(/static/findpassword/assets/css/images/password/icon05.png) 0 0 no-repeat;
        }

        .failure {
            background: url(/static/findpassword/assets/css/images/password/error.png) 0 0 no-repeat;
        }
    </style>

</head>

<body style="background: #DADADD;">

    <!-- Page Wrapper -->
    <div id="page-wrapper">

        <!-- Header -->

        <header id="header" class="">
            <h1><a href="/Home">
                <img src="/static/findpassword/images/logo.png">华智创云排课平台</a></h1>
            <nav id="nav">
                <ul>
                    <li class="special">
                        <a href="#menu" class="menuToggle"><span>菜单</span></a>

                    </li>
                </ul>
            </nav>
        </header>

    </div>
    <div class="e-mail">
        <div class="container">
            <div class="row">
                <div class="col-lg-5 col-md-5 col-sm-10 email">
                    <p></p>
                    <p><a id="emailLink" href="#">去邮箱查看</a></p>
                </div>
            </div>
        </div>
    </div>

    <!-- Scripts -->
    <script src="/static/findpassword/assets/js/jquery.min.js"></script>
    <script src="/static/findpassword/assets/js/jquery.scrollex.min.js"></script>
    <script src="/static/findpassword/assets/js/jquery.scrolly.min.js"></script>
    <script src="/static/findpassword/assets/js/skel.min.js"></script>
    <script src="/static/findpassword/assets/js/util.js"></script>
    <script src="/static/findpassword/assets/js/main.js"></script>
    <script src="/static/findpassword/js/bootstrap.min.js"></script>

    <div id="menu">
        <ul>
            <li>
                <a href="/" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">主页</a>
            </li>
            <li>
                <a target="_blank" href="doc.html" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">使用教程</a>
            </li>
            <li>
                <a href="/Home/Register" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">注册</a>
            </li>
            <li>
                <a href="/Home/Login" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">登陆</a>
            </li>

        </ul>
        <a href="#menu" class="close" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></a>
    </div>
</body>
</html>

<script type="text/javascript">
    // 邮箱tip
    var emailTip = "密码修改链接已经发送至您的 <span class='tipText'></span>邮箱";
    // token失效
    var unvalidateTokenTip = "当前token已失效!";

    $(function () {
        var tType = getQueryString("t");
        if (tType == "e") {
            // 邮箱类提示
            $(".email").find("p").eq(0).html(emailTip);
            // 替换用户邮箱
            var userAccount = getQueryString("userAccount");
            $(".tipText").text(userAccount);
            // 替换邮箱链接
            var emailLink = getQueryString("emailLink");
            $("#emailLink").attr("href", emailLink);
        } else if (tType == "t") {
            // token失效
            $(".email").find("p").eq(0).html(unvalidateTokenTip);
            $(".email").find("p").eq(1).hide();
        }

        
        // 成功or失败
        var fs = getQueryString("fs");
        if (fs == "f") {
            $(".email").find("p").eq(0).addClass("failure");
        } else {
            $(".email").find('p').eq(0).addClass('success')
        }
    })

    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
</script>
